﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QLTH_BUSINESS;
using unitlControl;
namespace QuanLy_THPT_S4.TienIch
{
    public partial class frmThongTinNguoiDung : Form
    {
        public frmThongTinNguoiDung()
        {
            InitializeComponent();
        }

        private void dateEdit1_EditValueChanged(object sender, EventArgs e)
        {

        }

        private void frmThongTinNguoiDung_Load(object sender, EventArgs e)
        {
            txtMAGV.Text = toancuc.ThongtinND.Gv.Magv;
            txtHoTen.Text = toancuc.ThongtinND.Gv.Holot + ' ' + toancuc.ThongtinND.Gv.Ten;
            txtNoiSinh.Text = toancuc.ThongtinND.Gv.Noisinh;
            txtDiaChi.Text = toancuc.ThongtinND.Gv.Diachi;
            txtHocvi.Text = toancuc.ThongtinND.Gv.Hocvi.Tenhv;
            txtDantoc.Text = toancuc.ThongtinND.Gv.dantoc.Tendt;
            txtTongiao.Text = toancuc.ThongtinND.Gv.tongiao.Tentg;
            txtTCM.Text = toancuc.ThongtinND.Gv.Tcm.Tentcm;
            txtQuyen.Text = toancuc.ThongtinND.Pq.Tenpq;
            txtSDT.Text = toancuc.ThongtinND.Gv.Sdt.ToString();
            dtNgaysinh.EditValue = toancuc.ThongtinND.Gv.Ngaysinh;
            rdophai.EditValue = toancuc.ThongtinND.Gv.Phai;

            rdophai.SelectedIndex = Convert.ToInt16(toancuc.ThongtinND.Gv.Phai);
               


        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void frmThongTinNguoiDung_KeyPress(object sender, KeyPressEventArgs e)
        {
            
        }

        private void frmThongTinNguoiDung_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
            {
                this.Close();
            }
        }
    }
}
